package com.xcap.security.datasourceauthentication.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Controller  //返回的是thymeleaf  模板
@Slf4j
public class LoginController {
    @RequestMapping("/toLogin")
    public String toLogin(){
        //返回thymeleaf的逻辑试图名字，物理视图=前缀+逻辑试图名+后缀
        //     /template/+login+ .html
        return "login";
    }

}
